package net.ewon.avatar.agent.impl;

import java.io.File;

import net.ewon.avatar.common.util.FilePathUtils;

import org.apache.commons.lang3.StringUtils;

public class AvatarPackageWinRepo extends AvatarPackageAbstractRepo {

	public AvatarPackageWinRepo(String baseLocation) {
		super(baseLocation);
	}

	public String getAbsolutePackageFilePath(String fileName) {
		return baseLocation + File.separator
				+ StringUtils.replace(fileName, "/", File.separator);
	}

	protected void normalize() {
		this.baseLocation = FilePathUtils.normalizeWin(this.baseLocation);
	}

}
